<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2020/8/31
  Time: 8:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<script type="text/javascript">
    function index(from) {
        if (from.name.value==""){
            number.innerHTML="账号不能为空";
        }
        if (from.password.value==""){
            password1.innerHTML="密码不能为空";
        }
    }
</script>
<style>
    #icon1{
        position: absolute;
        left: 20px;
        top: 50px;
    }
    #icon{
        position: absolute;
        left: 300px;
        top: 50px;
        font-size: 60px;
    }
    #homepage{
        position: absolute;
        top: 200px ;
        left: 20px;
    }
    #homepage1{
        position: absolute;
        top: 300px;
        right: 500px;
        font-size: 20px;
    }
    #homepage3{
        width: 300px;
    }
    #behind   ul li{
        list-style: none;
        float: left;
    }
    #behind{
        position: absolute;
        top: 600px;
        right: 600px;
    }
    #register{
        position: absolute;
        top: 600px;
        right: 200px;
    }
    .top1{
        position: absolute;
        top: 800px;
        right: 300px;
    }
</style>
</head>
<body>
<div id="icon3">
    <div id="icon1">
        <img src="/imgs/logo-1.jpg" width="274" height="96"/>
    </div>
    <div id="icon">
        会员登入
    </div>
</div>
<div>
    <div id="homepage">
        <img src="/imgs/u=3760679940,2249039765&fm=26&gp=0.jpg" width="1400" height="400"/>
    </div>
    <div id="homepage1">
        <form name="from1" action="/login/sign">
            <table>
                <tr>
                    <td>请输入用户账号</td>
                    <td><input type="text" name="name" onblur="index(from1)"><span id="number"></span></td>

                </tr>
                <tr>
                    <td>请输入密码</td>
                    <td><input type="password" name="password" onblur="index(from1)"><span id="password1"></span></td>
                </tr>
            </table>
            <input id="homepage3" type="submit" value="登入">
        </form>
    </div>
    <div class="top1">${login}</div>
</div>
<div id="register">
  <a href="/login/regis"> 注册</a>
</div>
<div id="behind">
    <ul>
        <li>首页</li>
        <li>关于我们</li>
        <li>猿来如此</li>
        <li ><a href="/back/supporter">登入后台</a></li>
    </ul>
</div>
</body>

</html>
